FROM daocloud.io/php:5.6-apache
MAINTAINER wolferhua

# 环境安装
RUN sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list \
    && apt update \
    && apt upgrade -y \
    && apt install  -y \
            libfreetype6-dev \
            libmcrypt-dev \
            libpng12-dev \
            libjpeg-dev \
            libpng-dev \
            sendmail \
            openssl \
            libpng-dev\
            libssl-dev\
    && apt install zlib1g-dev -y \
    && docker-php-ext-configure gd \
            --enable-gd-native-ttf \
            --with-freetype-dir=/usr/include/freetype2 \
            --with-png-dir=/usr/include \
            --with-jpeg-dir=/usr/include \
    && docker-php-ext-install mbstring zip  gd pdo pdo_mysql mysql mysqli mcrypt \
    && pecl install redis \
    && pecl install swoole-1.10.5 \
    && echo "extension=redis.so" > /usr/local/etc/php/conf.d/20-redis.ini\
    && echo "extension=swoole.so" > /usr/local/etc/php/conf.d/20-swoole.ini





# docker build -t wolferhua/php:5.6-apache .









